The MICR code is used to identify the bank and branch participating in the Electronic Clearing System (ECS). The 9 digits are structured as follows: the first three digits represent the city code, the next three digits represent the bank code, and the last three digits represent the branch code. This code helps in the quick and accurate processing of cheques.