DMARDs work by modulating the immune system to reduce inflammation and prevent damage to the joints and other tissues. Traditional DMARDs often have a broader mechanism of action, affecting various components of the immune response. Biologic DMARDs, on the other hand, are designed to target specific molecules or cells within the immune system, such as tumor necrosis factor (TNF) or interleukin-6 (IL-6).