Castor oil when applied topically is used to relieve period pain due to its anti-inflammatory, analgesic, and muscle-relaxant properties.