Gargoyles appeared during the Romanesque era, but were extremely popular during the Gothic period. Some are made to be "down spouts" for rainfall, while others appear to be guarding the structure/entrance. We cannot say whether it was to scare people away or the protect them. I think this one has a rather ominous feel to it! Maybe that's partly because the image is in black and white.