Who built the first castle?

We do not really know who built the first castle, when the first castle was built, or even what castle it was.

There is a link below to a related question, where there is more information.