Functionalized M2TiC2Tx MXenes (M = Cr and Mo; T = F, O, and OH) as high performance electrode materials for sodium ion batteries.