Pakistan has pursued different foreign policy eras since independence based on the geopolitical context. These include an initial era of neutrality (1947-1953), followed by an era of alliances (1954-1962) where it joined defense pacts. It then pursued bilateralism (1963-1978), non-alignment (1979-1989), relationships shaped by the post-Cold War environment (1990-2001), and its current era focused on the global war on terror (2001-present). Pakistan has had to balance relationships with neighboring states like Afghanistan, China, and India, while also cooperating in organizations like the Non-Aligned Movement and Organization of Islamic Cooperation.