Mexico was established as a constitutional monarchy when it…