In this paper, we devise an algorithm that extracts watersheds from digital elevation models. It creates a bitmap, which represents each watershed region with a different color. The final bitmap reveals that the algorithm deals well with mountainous terrains but creates erroneous watershed regions for flat surfaces, forests, and lakes.