Ms. Yousafzai, 24, married Asser Malik, a manager for the Pakistan Cricket Board, at a small Islamic ceremony called a nikkah, she said on Twitter.
But she shared a few pictures, including one of her husband signing what appeared to be a marriage contract and another of the pair posing among fall foliage.
Prime Minister Justin Trudeau of Canada said on Twitter that he and his wife hoped the couple enjoyed their “special day”: “We’re wishing you a lifetime of happiness together,” he wrote.
Tuesday’s wedding came more than nine years after Ms. Yousafzai survived an assassination attempt by the Taliban for criticizing the group’s attempts to prevent Pakistani girls from going to school.
Severely injured in the attack, Ms. Yousafzai was transferred to Britain for medical treatment.