In 1845, the state of Texas was annexed to the United States. This brought about a dispute with Mexico concerning the southwestern boundary of the state, and the result was a short war, in which the Americans were victorious.
Commander Farragut was very anxious to serve his country in this Mexican War, and wrote many letters to the Navy Department, asking for the command of a ship. For a long time he waited in vain. When, at last, a vessel was assigned to him, it was too late for him to do his country any service. The war was about over, and there was no more work for the navy to do.
From 1850 until 1852, he was employed in Washington, drawing up a book of regulations for the navy. As when in New Haven he had attended the lectures of Yale College, so now he attended those of the Smithsonian Institution.
SMITHSONIAN INSTITUTION.
"I have made it a rule of my life to do all things with a view to the possible future. You cannot come away from such lectures without being wiser than when you went in," he said. When the book of regulations was finished, he went back to the navy yard at Norfolk, where he gave a series of lectures on gunnery to the officers.
About this time, England and France were at war with Russia. Farragut applied to Congress for permission to visit the English and French fleets engaged in this war. He wished to see whether he could learn of any improvements that could be made in the American navy.
But Congress had other work for him to do. There was to be a new navy yard built on the Pacific coast, at San Francisco. This would be a difficult task, and one requiring the services of a man having great knowledge and experience. No one was better fitted to undertake it than the lieutenant who had been so eager to make use of every opportunity for improvement.
In August, 1854, he was accordingly sent to California. Some time before this, he had married a second wife, Virginia Loyall, of Norfolk, and she accompanied him to the Pacific coast. There were then no railroads across the great western plains, and they went by ship to the isthmus of Panama. After crossing the isthmus, they embarked upon a coasting vessel, and sailed to San Francisco.
Commander Farragut spent four years in laying the foundations of what is to-day the great navy yard on Mare Island, about thirty miles from San Francisco.