Imagine you are playing a game with your friends and you make your own rules. The rules you make are how you want to play the game and your friends have to follow them. This is sort of like what a country does. A country has its own rules and it can do things based on those rules without other countries interfering.
One of those rules is called the act of state doctrine. This is a rule that says that other countries and their courts can't tell a country how to run its own business. It's sort of like when your mom tells you to clean your room and you don't want your brother to tell you how to do it. This rule protects a country's decisions and actions from being judged by other countries.
So, let's say a country does something within its own borders like, for example, taking land from one group of people and giving it to another group of people. If that country believes that it did that for the good of the country, then the act of state doctrine says that other countries can't tell them they were wrong, even if the action they took was controversial or unpopular.