Flores entered the royal navy of Spain, where he commanded various ships of war fighting pirates, in both the Mediterranean and in Spanish possessions in America.
Flores was named viceroy of New Granada, and sailed to take up the position on December 3, 1775.