This was a treaty between the US and Britain to resolve problems from the previous treaty from 1783 and helped prevent another war.
In Washington's farewell address he stated a few pointers for the next president. He stated that the president should avoid political parties and geographical distinctions, and to avoid long term alliances with other countries.
Alien and Sedition Acts
The people of the USA had divided into groups, based on their political beliefs. These groups were called the Democratic Republicans and the Federalists
Will you be a judge?
This show X, Y, and Z refusing to let the people pass and see the king.
The Alien and Sedition Acts were made to keep foreigners out of the US. If there was an alien, then the government had the right to send them out of the country.
The last night of John Adams Presidency, he went and appointed as many federalists a judges as he could before midnight. He didn't know what political party the new president may be and was making sure at least one house had federalists in it.