Nitrous oxide is used in twilight dentistry to reduce anxiety and provide sedative and analgesic effects during dental processes. It helps patients remain more relaxed and compliant during their treatments.