The USS Enterprise (NCC-1701-C) was an Ambassador-class starship operated by Starfleet. It was the fourth ship to bear the name Enterprise. In 2344, Captain Rachel Garrett was the commanding officer.

In 2344, the Enterprise-C responded to a distress call from the Klingon outpost at Narendra III, which was under attack by four Romulan Warbirds. Garrett ordered the Enterprise to engage them. While defending the outpost, weapons discharges resulted in the creation of a temporal rift, through which the badly damaged Enterprise drifted, arriving in the year 2366. Garrett had been injured but managed to send a distress call.

Garrett was ready to stay and help with the war efforts, but then it was found that the Enterprise-C's journey through time had resulted in the creation of an alternate timeline, and that, if they wished to restore the proper flow of history, they would have to return through the rift, in the middle of the battle with the Romulans.

She balked at this, noting that they were hopelessly outmatched, but Picard pointed out that if a Federation starship were to sacrifice itself in defense of a Klingon outpost such an act would be seen as extremely honorable by them, and perhaps avoid the war altogether, but before they could depart, they came under attack by a Klingon ship, and Garrett is killed.

The timeline was restored when Lieutenant Richard Castillo took command of the Enterprise-C, and returned them through the rift. (TNG: "Yesterday's Enterprise")

More Info: memory-alpha.fandom.com