Attacks of gout are usually treated with a non-steroidal anti-inflammatory (NSAID), like ibuprofen. If the pain and swelling does not improve you may be given steroids as tablets or an injection.