ORIF is done in case of a fractured bone or incorrectly healed fracture which was initially managed with a cast. The surgery is done in 2 stages.
First Stage:
In the first stage the bone is reduced to the required length and put back in place.
Second Stage:
In the second stage a device is used to join edges of the bone, then screws and plates are used to hold the broken bone together.