Pakistan on Thursday defeated Afghanistan by 24 runs in a Group C match of the ongoing U-19 World Cup at the Brian Lara Stadium in Trinidad.