Size of tank, cold or tropical, species of fish and compatibility with others, type of filter or filters, heaters, lights, plants, food requirements - so much to take into consideration. I usually pick the type of fish I want, usually Cichlids, research there behaviour and tank mates possibilities, then pick a tank plus equipment. IMO the worst thing you can do is buy a tank first then put a few fish in and wonder where to go from there, I've known so many people buy tanks to small for what they have ended up wanting to put in it or buy a few fish on impulse then get stuck trying to find compatible tank mates for them. Better to research, take it slow, pick what you want and then go for it - you will be so much happier in the end.