Before the influx of users, they had modified the site to record a lot of data that a normal darknet market wouldn't. For example, instead of discarding photo metadata, it would extract it for law-enforcement use. They changed built-in PGP encryption software on the site, so that when people used it, it would first record the information entered before creating the message and sending it to the other user, which allowed them to get information like mailing addresses. Instead of hashing and salting passwords, they recorded them in plaintext, which allowed them to capture accounts on other markets when users had recycled usernames and passwords.
The operation, called Operation Bayonet [2], was complex enough that several different law enforcement agencies from Europe and the US were involved. The Dutch police, Interpol, the FBI and DEA etc. It was quite an interesting case.
[0] https://en.wikipedia.org/wiki/Hansa_(market)
[1] https://en.wikipedia.org/wiki/AlphaBay
[2] https://en.wikipedia.org/wiki/Operation_Bayonet_(darknet)