Agility is a stat which affects the miss and crit chance of attacks. The agility of yourself, party members and enemies also affects turn order.