Arthritis is a common cause of joint pain and swelling, which can be caused by injuries that damage the tissue around joints. Other causes include an infection, certain autoimmune diseases such as rheumatoid arthritis or gout, or exposure to toxins.