When was the fort built and why?

/When was the fort built and why?