Speaking in the courtyard of Warsaw's Belweder Palace on Sunday, he said today's main political and diplomatic task was to ensure that "no tsar's governor ever again lives" there.
The ceremony marked 196 years since the start of the November Uprising.
The revolt began on the night of 29-30 November 1830, when officer cadets led by Piotr Wysocki attacked the palace.
It was then home to Grand Duke Constantine, the tsar's brother.
He commanded the army of the Russian-controlled Kingdom of Poland and was in effect its governor.
The rebellion was crushed in 1831.
According to Nawrocki, the events of 1830 showed how much determination, courage and sacrifice had been needed over the 19th and 20th centuries to give today's Poles a free, independent country, one for which they were now responsible.
Wysocki and his fellow cadets, he added, had set the struggle in motion at a time when many generals and members of the elite were not ready to act.
Nawrocki urged their present-day successors never "to let the spark of independence, freedom and sovereignty go out."
"Today we need the fiery hearts of young cadets, as well as the pragmatism and strategy of Polish generals," the president said.
Deputy Defence Minister Stanisław Wziątek, who also spoke at the event, stressed that peace could not be taken for granted.
Poland, he said, needed a strong, modern and well-prepared military, along with educated, highly trained soldiers and commanders.
(ał)
Source: PAP, IAR