Treaty of Algeron
The Treaty of Algeron is an agreement between the United Federation of Planets and the Romulan Star Empire that somehow "keeps the peace" between the two powers, who presumably negotiated it following the events of "The Enterprise Incident" (TOS).
Under the terms of the treaty, the Federation may not develop or deploy cloaking technology, resulting in a significant tactical disadvantage for Federation starships. What the Romulans gave up in return (if anything) remains unclear. Treaty Alrgeron seem only ban UFP starships and man spacecaft form being allowed to use cloak device on them. Other wise we expect UFP not able deploy Self-replicating mines with cloaking device on them blockade the Bajor wornhole form Domimion forces. In 2371, the Romulans agreed to loan one of their own cloaking devices to the Federation and installed it on the USS Defiant. It's use was to be restricted to the Gamma Quadrant under Romulan supervision. In return, the Federation agreed to share all intelligence that the ship acquired in the Gamma Quadrant.
Treaty of Algeron at Memory Alpha