Section 24 of the CPC grants general power of transfer and withdrawal to the High Court and the District Court. It allows these courts to, at any stage, transfer any suit, appeal, or other proceeding pending before a court subordinate to them to any other subordinate court competent to try it. This power is exercised to meet the ends of justice. It should be distinguished from Section 25, which gives the Supreme Court the power to transfer suits from a court in one state to a court in another state.