To blaspheme is to say something offensive, specifically offensive to a religion.
There are several types of blaspheming, but they usually involve saying things that are considered offensive to a religion or to a deity. If you say "Jesus Christ!" or "Good God!" when you stub your toe, some would consider that blaspheming.