One of the functions of the legislature is to ratify or approve the treaty that has been signed by an ambassador to the country. It can only be binding on a nation if it has been approved by the legislature.