We are interested in numerical simulation of compressible flows with interfaces. Theses interfaces can separate a fluid and a rigid solid, two fluids with differents constitutive law, or a fluid and an elastic solid. First, we have developped an immersed boundary method to impose precisely a non penetration condition at the border of an obstacle. Then, a sharp interface method for compressible multimaterials have been studied and validated. The immersed boundary method of the first part is applied in this context.