A trigger assembly for a crossbow comprises a string retainer and a trigger mechanism. The trigger assembly can further comprise a piston, a safety mechanism, a secondary safety mechanism, a bolt sensor, or a pair of rotating sears. The string retainer can comprise a pair of opposed jaws.