A door wedge for securing a door in a stationary position and having a locking mechanism to prevent forward and backward movement of the door is provided. The door wedge includes a base member with an upper layer pivotably mounted to a lower layer, and a L-shaped member slidably mounted to an end of the lower layer. The upper layer and lower layer of the base member compress with respect to each other to enable the door to slide over the upper layer and decompress to secure the door within space between the upper layer and the L-shaped member, thereby preventing forward and backward movement of the door.