On January 6, 2021, Davis was at the U.S. Capitol to certify the Electoral College vote count when Trump supporters stormed the building. Davis and his staff went into hiding under police lockdown for over four hours during the attack. After the Capitol was secure and Congress resumed session, Davis certified the election without objection. As a result of the attack, Trump was impeached a second time. Davis voted against impeachment, saying, "there must be accountability for leaders who deliberately misled the public, but I fear that without thoughtful and clear-eyed leadership from both sides of the aisle, we are in danger of further violence and political unrest." In the wake of the attack, metal detectors were placed outside the House chamber. Davis objected to them.