Original: In 1844, he attended the celebrations marking the completion of the cathedral, becoming the first king of Prussia to enter a Roman Catholic building.
Simplified: In 1844, he attended the celebrations of the completion of the cathedral, so he was the first king of Prussia who entered a Roman Catholic building.