A man has been taken into custody after a Westfield shopping centre was closed during a police operation in Hornsby on Sydney's North Shore.

Police confirmed a man was taken into custody and was assisting them with their inquiries.

They said the operation at the shopping centre, on the corner of Burdett Street, had been resolved and the situation was all clear.

The centre was later reopened.

Police did not release any further details.