Before the opening of Manila to foreign trade, the Spanish authorities discouraged foreign merchants from residing in the colony and engaging in business. The royal decree of February 2, 1800, prohibited foreigners from living in the Philippines. as did the royal decrees of 1807 and 1816. In 1823, Governor-General Mariano Ricafort promulgated an edict prohibiting foreign merchants from engaging in retail trade and visiting the provinces for the purpose of trading. It was reissued by Luis Lardizábal in 1840. A royal decree issued in 1844 prohibited foreigners from traveling to the provinces under any pretext whatsoever, and in 1857, several anti-foreigner laws were renewed.