Patriotism is defined as the love of one's homeland and can take two forms - imperial patriotism which maintains loyalty to an empire, and national patriotism which is love for one's nation. Leo Tolstoy criticized patriotism as something that inevitably leads to war and state oppression.
Cosmopolitanism places the interests of humanity over individual nations and sees people as world citizens. It originated in ancient Greece with philosophers like Socrates and had a religious element in the Middle Ages but was not fully developed theoretically. Cosmopolitanism saw a revival in the 20th century following wars and revolutions.