After passing the exams of the U.S. Navy's Medical Department, he was appointed Assistant Surgeon on November 18, 1847. His first posting was to the Gulf Squadron, which was engaged against Mexico during the Mexican–American War. He was soon placed in charge of the Naval Hospital in Frontera de Tabasco, where he would remain until the end of the war. His work at the hospital earned him a commendation from the squadron commander, Commodore Matthew C. Perry. Following the end of the conflict, Dr. Horwitz was posted to the USS Constitution, which was joining the Mediterranean Squadron following its refitting in 1847. He then joined the supply ship USS Relief, bound for Brazil. Following an examination, he was promoted in 1853 and assigned to the steamer USS Princeton, where he would serve for two years. While the Princeton stationed in Philadelphia, Dr. Horwitz met his wife, Caroline Norris, whom he married in 1854; the couple would have seven sons and two daughters. Their son Orville, born in 1860, would go on to become professor of genito-urinary surgery in Jefferson Medical College. George Quintard, born in 1868, would become a lawyer in Philadelphia. Caroline herself was a published author, including Swanhilde, Fairy Lure, and Twentieth Century Chronology of the World. Phineas joined the USS Supply in 1855, and the ship performed duty at stations near Africa and Brazil. In 1859 he returned to the United States to become an assistant at the U.S. Navy's Bureau of Medicine and Surgery. He served there throughout the American Civil War, receiving a promotion to the grade of Surgeon on April 19, 1861; a rank equivalent to lieutenant commander. Following the death of Surgeon William Whelan, he became Chief of the Bureau, July 1, 1865: equivalent in rank to commodore. While chief of the bureau, he was in charge of the construction of the naval hospitals at Philadelphia and Mare Island, California. His term of service ended July 1, 1869, whereupon he left to take charge of the Naval Hospital in Philadelphia. There he would also serve as president of the examining board. On March 3, 1871, he was promoted to medical inspector, with a rank equivalent to commander, then to medical director on June 30, 1873, which is equivalent in rank to captain. He was assigned to the Naval Asylum in 1877, where he would remain until 1883. On March 3, 1884, he retired after 38 years of active service.