What is the version of the following sentence with correct punctuation?

In 1781 the Palace hosted Cardinal Corsini during his pastoral visit
In 1781 the Palace hosted Cardinal Corsini during his pastoral visit.