Bedside rails, also known as bed safety rails or side rails, are devices attached to the sides of a bed. They serve multiple purposes, including preventing patients from falling out of bed, providing support when getting in and out of bed, and offering a sense of security and independence for patients.