its long history is marked along the cliff, where the castle and the revelim fortress stand; both originally built as a form of protection but now two of portugal's most beautiful viewpoints.

Please write the text above using proper case.
Its long history is marked along the cliff, where the castle and the Revelim fortress stand; both originally built as a form of protection but now two of Portugal's most beautiful viewpoints.