The skin plays a crucial role in the excretory system by excreting small amounts of waste products through sweat. This process helps regulate body temperature and eliminate certain substances from the body.