International economics

Why can a fixed exchange-rate system become vulnerable to a currency crisis when markets doubt that the central bank has enough reserves to defend the peg?