When you say market, I assume you are trying to sell it. You cannot sell homebrew under any circumstances. If you want to become a microbrewery, then it is alot more difficult and this forum will not help much.
Just a rough runddown of what you will have to do:
1) Business licenses in your state
2) License for brewing alcohol, possibly another for selling
3) Federal License (which costs at least a grand)
4) Then you have to keep track of everything for alcohol tax purposes.
FYI: I looked into this at one time, just for the hell of it. If you want to get started in the right direction, go to
www.beertown.org and link to the Brewer's Association portion of the site. Also do a search on federal alcohol regs, and look at your state's liquor control board website.
Good Luck.