was established by the Corts General (parliament) of the Crown of Aragon, the consuls were independent from the King. This distinction between consular and diplomatic functions remains (at least formally) to this day. Modern consuls retain limited judicial powers to settle disputes on ships from their country (notably regarding the payment of wages to sailors). The consulado de mercaderes was set up in 1543 in Seville as a merchant guild to control trade with Latin America. As such, it had branches in the principal cities of the Spanish colonies. The connection of "consul" with trade and commercial law is retained in French. In Francophone countries, a juge consulaire (consular judge) is a non-professional judge elected by the chamber of commerce to settle commercial disputes in the first instance (in France, sitting in panels of three; in Belgium, in conjunction with a professional magistrate). Consulates and embassies The office of a consul is a consulate and is usually subordinate to the state's main representation in the capital of that foreign country (host state), usually an embassy or – between Commonwealth countries – high commission. Like the terms embassy or high commission, consulate may refer not only to the office of consul, but also to the building occupied by the consul and their staff. The consulate may share premises with the embassy itself. Consular rank A consul of the highest rank is termed a consul-general and is appointed to a consulate-general. There is typically one or more deputy consuls-general, consuls, vice-consuls, and consular agents working under the consul-general. A country may appoint more than one consul-general to another nation. Authority and activities Consuls of various ranks may have specific legal authority for certain activities, such as notarizing documents. As such, diplomatic personnel with other responsibilities may receive consular letters patent (commissions). Aside from those outlined in the Vienna Convention on Diplomatic Relations, there are few formal requirements outlining what a consular official must do. For example, for some countries, consular officials may be responsible for the issue of visas; other countries may limit "consular services" to providing assistance to compatriots, legalization of documents, etc. Nonetheless, consulates proper will be headed by consuls of various ranks, even if such officials have little or no connection with the more limited sense of consular service. Activities of a consulate include protecting the interests of their citizens temporarily or permanently resident in the host country, issuing