A composition and a method of using the composition as a disinfectant for inactivating the hepatitis B virus. The composition is contains at least one alkylamine and/or at least one quaternary ammonium compound, and at least one fatty acid RCOOH and/or a salt thereof, where R is a group having at least 7 carbon atoms.