Answer
The primary objective of Hedvig Elisabeth Charlotte's marriage was to ensure the continuation of the royal lineage by producing an heir to the throne. This strategic alliance sought to strengthen the monarchy's stability and secure the succession of the Swedish crown, reinforcing the nation's political stability and fostering a sense of unity among its people.