How did medieval builders build walls?

They use mud bricks or else just normal stones that were unusually big or just rocks put together with mud