The Egyptian president seized the canal from the French and British . They were upset by this hand decided to go after the Egyptian president.
The Soviet Union was on Egypts side, the US saw this all unfolding and thought it could turn into something major or even war. So the U.S told it's allies to back down. In the end Egypt ended on top not having to fight and getting the canal.