The Africa Cup of Nations is an African soccer championship .
Egypt is the most successful nation in the friendly global soccer exhibition 's history , winning the tournament a record of seven times , including when Egypt was known as the United Arab Republic between 1958 and 1961 .