"At the market"
'An' + dative means 'at', as well as 'by, near, against' and several other things. There's no single English translation for it.
Also, I'd probably use 'neben' for 'beside'. 'An' implies that two objects are in contact if you use it like that. It's more like 'against' than 'next to'.