An implant with anti-inflammatory or antibacterial effects, or both, for implantation in a human or animal body, the implant having a set of porous grains or granules, wherein at least a plurality of the porous grains or granules include titanium, one or more titanium oxides or titanium alloy and have a titanium oxide layer on their surface and have a mean length from one side to the opposite side, through a geometrical center, of at least 200 μm and up to 5 mm and a mean specific surface area of at least 0.15 m2/g according to the BET method. Also featured is a population of grains or granules having anti-inflammatory or antibacterial effects, or both. Further featured is a method of producing an implant, a method for deriving a population of grains or granules, and a method for treating a condition with a porous grain or granule.