The mechanism of action of hydroxychloroquine is not fully understood. It is believed to work by interfering with the communication of cells in the immune system. It may also alter the acidity within cells, which can affect the function of enzymes involved in the inflammatory process.