The Main Objective Of This Paper Is To Avoid The Railway Accidents Happening At The Level Crossings. In India Railway Is The Major Mode Of The Transportations And It Is The Cheapest Way For Travelling. So There Are More Numbers Of Rail Users. And It Is Not Easy To Stop Railway Anywhere To Prevent Accident Or For Any Other Reason. Due To That There Are Major Drawbacks Of That. At Present Manned System Is Available At Level Crossings. Hence, Many Accidents Occur At Such Crossings, Since There Is No One To Take Care Of The Functioning Of The Railway Gate When A Train Approaches The Crossing. The Objective Of This Paper Is To Manage The Control System Of Railway Gate Using The Microcontroller. This Model Includes IR Sensors, RF, LCD, Buzzer, Light Led, Motor Driver And Microcontroller PIC16F877A. In The Automatic Railway Gate Control System, At The Level Crossing The Arrival Of The Train Is Detected By The IR Sensor And RFID Placed Near To The Gate. In Case Of RF It Detects Only Arrival Of Train. Hence, The Time For Which It Is Closed Is Less Compared To The Manually Operated Gates And Reduces The Human Labor. As The Entire System Is Automated Errors Occurring Due To Manual Operation Are Prevented Because The Accuracy Of Automated Operation Is More Than The Manned Operation.