A gasket for connecting two lengths of pipe in a standard mechanical joint is disclosed, which gasket maximizes the advantages of both restrained push-on joints as well as mechanical joints, as are known commonly in the art. The invention has application to long-run pipe lengths as well as appurtenances, including fittings and connections. The gasket contains locking members that act to restrain separation upon the instance of any force tending to separate the connected pipe lengths.