Pakistan kicked off a day of celebrations on Monday marking 70 years of statehood and independence, the festivities beginning with gun salutes in the capital, Islamabad, and in each of the four provincial capitals.
In Islamabad, president Mamnoon Hussain hoisted the national flag at a ceremony attended by prime minister Shahid Khaqan Abbasi, visiting Chinese vice premier Wang Yang, and scores of Pakistani military and government officials and other dignitaries.
Security was on high alert across the nation following the suicide attack on Saturday when a bomber on a motorcycle targeted a military truck in the southwestern city of Quetta, killing 15 — eight soldiers and seven civilians.
Pakistan gained independence when the departing British left India and split the subcontinent in 1947, sparking one of the most violent upheavals of the 20th century.
For the Pakistanis, the anniversary comes amid political turmoil that has characterised successive civilian governments of the country, which has been dominated by military rule through much of its history.
Addressing the ceremony in the capital, Mr Hussain urged the nation to look to the wisdom of its founders when facing the current "hot" environment.
"Solutions to all the problems of this time persist in our ideologies, thoughts of leaders of our freedom movement and our bright history," he said. "By following them we can improve our situation today and our future as well."
Pakistan: 70 years after Partition
Pakistan marks 70 years of independence - in pictures
Pakistan independence: 'we have every reason to look to tomorrow with optimism'
He appealed on the citizens to "rise above" their party and group interests and "protect the future of the nation". Later in the evening, Hussain was to hand out medals to noteworthy citizens.
Most recently, Pakistan's political scene has been shaken when the Supreme Court dismissed prime minister Nawaz Sharif from office in July for concealing his family assets.
Mr Sharif stepped down, allowing for Mr Abbasi to take over, but decried the court's ruling as an injustice and vowed to clear his name. Then he embarked last week on a series of on-the-road rallies, spanning four days and covering the stretch from Islamabad to his hometown, the eastern city of Lahore where he addressed tens of thousands of supporters.
Chinese vice premier Wang Yang said his country considers Pakistan an important partner in the "Belt and Road Initiative" that calls for Beijing building ports, railways and other facilities in a vast arc spanning 65 countries, including Pakistan.
In Karachi, visitors paid respects at the mausoleum of Mohammad Ali Jinnah, the founder the country.
Pakistan Air Force put on a spectacular airshow, with Pakistani, Turkish and Saudi fighter jets flying over Islamabad as thousands of spectators watched from one of the city's parks.