A composite resin filling is the most often used method of treating a cavity. It is preferred because, unlike amalgams, the color of the filling can match the color of your teeth. There is also less drilling needed a composite resin filling, which leaves more of the natural tooth preserved. However, they are less durable than an amalgam filling, so they are usually used on small to medium cavities.