The purpose of this legislation is to end the designation of Pakistan as a major non-NATO ally of the United States. This designation currently provides Pakistan with certain military and financial benefits. The bill aims to hold Pakistan accountable for its actions regarding militant groups, specifically the Haqqani Network, which is known for its involvement in terrorism. The key provisions of this legislation include the immediate termination of Pakistan's status as a major non-NATO ally.