Alligators and crocodiles are both members of the order Crocodylia, a classification that groups large, semi-aquatic reptiles based on shared physical features and evolutionary lineage.