(covers information from an alternate timeline)
Four-year missions were a type of long-term exploratory missions conducted by Starfleet.
In an alternate timeline, the USS Rhode Island under the command of Captain Harry Kim was sent on a four-year mission from 2400 to 2404. His absence caused Captain Kim to miss several social events back home. (VOY: "Endgame")