Recoxib is a nonsteroidal anti-inflammatory drug (NSAID) primarily prescribed to relieve moderate pain, swelling, and inflammation.