The first country to recognize the United States as an independent nation was the Sultanate of Morocco, under its ruler Mohammed ben Abdallah, in the year 1777. He maintained several correspondences with President George Washington. On December 9, 1805, President Thomas Jefferson hosted a dinner at the White House for his guest Sidi Soliman Mellimelli, an envoy from Tunis.