Answer
Lafitte's assistance in the Battle of New Orleans, where he shared crucial intelligence on British positions and helped coordinate defense strategies, proved invaluable to the American victory, prompting the U.S. government to grant him a pardon for his previous piracy convictions, recognizing the significance of his contributions to the nation's defense.