A valve for a urine bag includes a guide member having a connection end at one end thereof and a plurality of holes are defined through a wall of the guide member. A sleeve is connected to the connection end and a movable member is movably located in the guide member. The movable member includes a base and a guide rod extends from an end of the base. The valve is connected to the connection part of the urine bag and when urine passes through the guide member, the movable member is pushed away from the sleeve to allow the urine to flow into the urine bag. The movable member is moved to contact the sleeve when the urine in the urine bag flows backward. The base seals the sleeve to stop the urine flowing back to the user.