An occlusive device and a method of embolizing or occluding a bodily lumen by injecting or otherwise implanting the occlusive device are described. The device includes a polymer or polymer composition and a carbon-based material or nanomaterial such as graphene. The device may be used for sterilizing a human or animal by implanting the device into the vas deferens, fallopian tubes, or uterus, but may also be used to occlude any other bodily ducts, interstitial space, or organs.