In order to improve the accuracy of traffic time prediction, a combined model based on bilstm and attention is established. That is to add attention mechanism to the bilstm model, so that the model can give different weights to different time steps. Experiments show that the bilstm-att model with attention mechanism has better prediction ability than the bilstm model.