As we came across many newspapers, many accidents that are made in unmanned level crossings. The trains running on same track are also the cause of major accidents at railways crossing. In both of the cases, human loss and damage to the train are the results. In this paper, we proposed an automatic railway gate operation to avoid such accidents at unmanned gate and automatic closure of unmanned gate without gate keeper. This is also developed to avoid the collision of trains running on same track. Automatic closure of unmanned gate reduces the time for which the gatekeeper closing and provides safety to the road users by reducing the accidents. In India, totally 28,607 level crossings are placed, in that 19,267 are manned & 9340 are unmanned crossings. The collision of trains running on same track is also prevented by employing infrared (IR) Transmitter. The IR system at each station receives the information and passes to a master control room. IR wireless technology devices convey information of data through infrared radiation..