It can mean:
* Excuse me: "Pardon me, could you repeat that?"
* Forgive: "I beg your pardon for my rudeness."
* Excuse: "I have a pardon from the king." (in a legal context)
The word "perdon" is most commonly used in Spanish, but it's also used in other Romance languages.