It depends on the type of floor. If you use carpet, then install baseboard first and then lay the carpet. For hardwood, lay the floor first, leave a space between the floor and the wall, then install the baseboard.